import HttpUtil from '@/common/HttpUtil'

class CollectionModel {
  // 获取区域排名前十数据
  getFindDistrictByCount (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findDistrictByCount/'
    return HttpUtil.post(postUrl, params)
  }
  // 获取个物种排名
  getFindSpeciesByCount (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findSpeciesByCount'
    return HttpUtil.get(postUrl, params)
  }
  // 获取物种分布分析数据
  getFindSpeciesByLineType (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findSpeciesByLineType'
    return HttpUtil.get(postUrl, params)
  }
  // 获取历史调查数据
  getFindDataByYear (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findDataByYear'
    return HttpUtil.get(postUrl, params)
  }
  // 获取统计各项总数
  getFindCount (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findCount'
    return HttpUtil.get(postUrl, params)
  }
  // 获取实时调查数据
  getFindCurrentDataByNow (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findCurrentDataByNow'
    return HttpUtil.get(postUrl, params)
  }
  // 获取林木种质统计各项总数
  findGermplasmCount (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findGermplasmCount'
    return HttpUtil.get(postUrl, params)
  }
  // 获取林木种质实时调查数据（轮询统计当天在线人员数，当天调查样本）
  findGermplasmCurrentDataByNow (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findGermplasmCurrentDataByNow'
    return HttpUtil.get(postUrl, params)
  }
  // 获取林木种质历史调查对比（统计每年12个月值）
  findGermplasmDataByYear (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/ws/stats/findGermplasmDataByYear'
    return HttpUtil.get(postUrl, params)
  }
}

export {CollectionModel}
